package ru.averta.notes.other;

import java.util.Collection;
import java.util.LinkedList;

import org.springframework.util.ClassUtils;

public class UtilsCommon {

	public static String getClassName(Object object) {
		Class<?> typeClass = ClassUtils.getUserClass(object.getClass());
		return typeClass.getName();
	}
	
	public static <E> Collection<E> collectionToRemove(Collection<E> sourceCollection) {

		Collection<E> toRemove = new LinkedList<E>();
		for (E object : sourceCollection) {
			toRemove.add(object);
		}

		return toRemove;
	}
}
